const mongoose = require('../config/db/mongo');
const moment = require('moment');
const Schema = mongoose.Schema;
const schemaOptions = {
        versionKey: false
    }
const newPrivateuserSchema = new Schema({
    nickname: String,
    gender: Number,
    city: String,
    followerCount: Number,
    uid: String,
    addTime: { type: Date, default: Date.now },
    accountUid: String,
    accountName: String,
    updatetime: { type: Date },
    postCount: Number,
    fansCount: Number,
    searched: [],
    firstClickUser: [],
    allClickUser: [],
    isClicked: Number,//0未读1已读
    isDelete: Number,
}, schemaOptions);

// methods ====================== 提高数据库检索速度 按顺序
// newPrivateuserSchema.index({ name: 1 });
// create the model for users and expose it to our app
module.exports = mongoose.model('newprivateuser', newPrivateuserSchema, 'newprivateuser');